require(["config"], function() {
	require(["jquery","template","header-top","header-search","header-bottom","footer"], function($, template) {
		function List(){
			this.lists();
		}
		$.extend(List.prototype,{
			//渲染列表商品
			lists(){
				$.getJSON("http://rap2api.taobao.org/app/mock/120067/ap/hot", (data)=>{
					const htl= template("product",{prog:data.res_body.list});
					$(".product-main").prepend(htl);
				});
			}
		});
		new List();
	});
});

